package com.nus.fellowmark.dao;

import com.nus.fellowmark.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * 
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-02-10  
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {
	/**
     * select userId by email
     * @param email
     * @return
     */
    @Select("SELECT * FROM user WHERE email=#{email}")
    UserEntity selectByEmail(String email);
}
